package com.kuang.pojo;
//工厂创建对象
public class objectFactory {
    //实例方法创建
    public User getInstance(){
        return new User(100,"工厂:调用实例方法");
    }
    //动态方法创建
    public static User getStaticInstance(){
        return new User(101,"工厂:调用静态方法");
    }
}

